<!DOCTYPE html>
<html>
<head>
<title>代理中心</title>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->skin_url?>frontend/default/min.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->skin_url?>agent/<?php echo $this->skinName ?>/main.css"/>
<link rel="stylesheet" type="text/css" href="/pub/share/css/jquery-ui/smoothness/skin.css"/>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl ?>share/js/swfobject.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl ?>share/js/jquery/jquery.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl ?>share/js/jquery/jquery.validate.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl ?>share/js/jquery/jquery.ui.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl ?>share/js/jquery/jquery.metadata.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl ?>share/js/jquery/jquery.form.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl ?>share/js/jquery/jquery.uploadify.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->skin_url?>agent/agent.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->skin_url?>backend/localize/<?php echo $this->localizeCode ?>.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->pubUrl?>share/js/ckeditor/ckeditor.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->pubUrl?>share/js/ckfinder/ckfinder.js"></script>
<?php echo Kd_Web::getPage()->renderScript() ?>
<?php echo $this->renderBlock('referenceScripts'); ?>
<?php echo $this->renderBlock('scriptBlocks');?>
<script type="text/javascript">
    var pageInfo = {
        baseUrl:'<?php echo $this->base_url ?>',
        routeBaseUrl:'<?php echo $this->routeBaseUrl?>'
    };
</script>
</head>
<body>
<?php echo $this->loadTemplate('share' . DS . 'header.phtml'); ?>
<?php echo $this->loadBlock('share_navigation'); ?>
<div class="public_width user-admin">
	<div class="user-menu">
		<dl>
			<dt>个人信息</dt>
			<dd>
				<a href="<?php echo $this->getUrl(NULL,'index','changePassword','password')?>">修改密码</a>
				<a href="<?php echo $this->getUrl(NULL,'information','profile','profile')?>">基本资料</a>
			</dd>
		</dl>
                <?php if(Kd_Web::getIdentity()->isAllowAction('subject_content_index')):?>
		<dl>
			<dt>操作</dt>
			<dd>
				<a href="<?php echo $this->getUrl(NULL,'index','subject','subject')?>">我的主题</a>
			</dd>
			<dd>
				<a href="<?php echo $this->getUrl(NULL,'index','index','customer')?>">我的客户</a>
			</dd>			
		</dl>
                <?php endif;?>
	</div>
	<div class="user-main">
		<?php echo $this->loadTemplate('share' . DS . 'message.phtml');?>
		<?php
	    	$_title = $this->__('agent.info_title.'.
	    							$this->router->getComponent().'_'.
	    							$this->router->getController().'_'.
	    							str_replace('-', '_', $this->router->getAction()));
		?>
		<div class="pub-current">
			<dl><dt><label><?php echo $_title; ?></label></dt></dl>		
		</div>
        <?php echo $this->renderBlock()?>
	</div>
</div>
<?php echo $this->loadTemplate('share'.DS.'footer.phtml')?>
</body>
</html>